package com.wh.springboot.common.entity.dto;

import cn.hutool.core.annotation.Alias;
import com.wh.springboot.common.entity.Menu;
import lombok.Data;

import java.util.List;

/**
 * 接收前端登录请求的参数
 */
@Data
public class UserDTO {
    private Integer id;
    @Alias("用户名")
    private String username;
    @Alias("密码")
    private String password;
    @Alias("昵称")
    private String nickname;
    @Alias("头像")
    private String avatarUrl;
    @Alias("邮箱")
    private String email;
    @Alias("电话")
    private String phone;
    private String token;
    private String captcha;
    @Alias("年龄")
    private Integer age;
    @Alias("性别")
    private String sex;

    @Alias("就诊卡号")
    private String card;
    //当前所有用户的菜单项
    private List<Menu> menus;
    @Alias("角色")
    private String role;
}
